<?php
defined('_JEXEC') or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

class igcategoriesViewigcategories extends JView
{
	function display($tpl = null)
	{
		global $mainframe;
                $configArray =& JComponentHelper::getParams('com_igallery');
		$params = &$mainframe->getParams();
		$Itemid = JRequest::getInt('Itemid', '');
		$document =& JFactory::getDocument();
		$document->addStyleSheet(IG_HOST.'components/com_igallery/css/admintable.css');
		$categories = $this->get( 'Data' );
		
		$total		= &$this->get('total');
		$pagination	= &$this->get('pagination');
		
		$this->assignRef( 'pagination' , $pagination );
		$this->assignRef('categories',	$categories);
        $this->assignRef('Itemid', $Itemid);
		$this->assignRef('params',    $params);
		
		parent::display($tpl);
	}
}